﻿using Domain.Entity.ord;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepository
{
    public interface IPurchase_dRepository
    {
        //新增进货明细单
        Task<int> AddPurchase_d(Purchase_d purchase_D);

        //根据进货单id查询明细
        Task<List<Purchase_d>> GetPurchase_Ds(int purid);

        //删除进货明细单
        Task<int> DeletePurchase_d(int purid);

        //更新入库数量
        Task<int> Updatenum(Purchase_d purchase_D);

        //根据进货单与货品获取到主键id
        Task<int> Getid(int purid,int procid);

        //更新已退货数量
        Task<int> UpdateRNum(int purtid, int returnnum);

        //更新已退货数量
        Task<int> UpdateRNum(int purtid, int returnnum,int newnum);
    }
}
